﻿<%@ Page Language="C#" MasterPageFile="~/Shared/Masters/Form.master" AutoEventWireup="true" CodeFile="AppealApproveAdd.aspx.cs" 
Inherits="Modules_Default_AppealApproveAdd" Title="绩效申诉审批" %>

<asp:Content ID="Content2" ContentPlaceHolderID="idFormMain" Runat="Server">

    <h2>
       <asp:Label ID="lblTitle" runat="server" Text="绩效申诉审批" ></asp:Label>
    </h2>
<div>
    <table cellpadding='2' cellspacing='1' class='ow_fim_mg' width='100%'>
                <tr>
                    <td class='fi_l'>
                        <asp:Label ID="lbCode" runat="server" Text="审批结果:"></asp:Label><font color='red'>*</font>
                    </td>
                    <td class='fi_r' colspan="3">
                        <asp:RadioButtonList ID="rblIsPass" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True" Text="通过" Value="0"></asp:ListItem>
                            <asp:ListItem Text="不通过" Value="1"></asp:ListItem>
                        </asp:RadioButtonList> 
                    </td>
                </tr>
                <tr>
                    <td class='fi_l'>
                        <asp:Label ID="lbName" runat="server" Text="处理意见:"></asp:Label>
                    </td>
                    <td class='fi_r' colspan="3">
                        <asp:TextBox ID="txtComment" runat="server" TextMode="MultiLine" Rows="10" Width='300px' MaxLength='2000'></asp:TextBox>
                        </td>
                </tr>
                <tr>
                   <td class='fi_l'>
                        <asp:Label ID="lbStatus" runat="server" Text="附件:"></asp:Label><font color='red'>*</font>
                    </td>
                    <td class='fi_r' colspan="3">
                        <div id="_container">
                            
                        </div>
                        <div><input type="button" value="添加" onclick="addFile()" /></div>
                    </td> 
                </tr>
            </table>
</div>

<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
        ShowSummary="False" ValidationGroup="oss" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="idFormButton" Runat="Server">
  <asp:Button ID="btnSave" runat="server" Text="保存"  ValidationGroup="oss"
        OnClick="btnSave_Click" />
    <asp:Button ID="CloseButton" runat="server" Text="关闭" 
        OnClientClick="return closeForm();" />   
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="idScript" runat="Server">

    <script type="text/javascript">
        function closeForm() {
            window.returnValue="false";
            window.opener=null;
            window.close();
            return false;
        } 
       
        function addFile() {
          var div = document.createElement("div");
          var f = document.createElement("input");
          f.setAttribute("type", "file")
          f.setAttribute("name", "File")
          f.setAttribute("size", "30")
          div.appendChild(f)
          var d = document.createElement("input");
          d.setAttribute("type", "button")
          d.setAttribute("onclick", "deteFile(this)");
          d.setAttribute("value", "移除")
          div.appendChild(d)
          document.getElementById("_container").appendChild(div);
        }

        function deteFile(o) {
          while (o.tagName != "DIV") o = o.parentNode;
          o.parentNode.removeChild(o);
        }
        
        document.forms[0].setAttribute("method","post");
        document.forms[0].setAttribute("enctype","multipart/form-data");
    </script>

</asp:Content>



